/**
 * @description 请求方法
 */
export enum RequestEnum {
  GET = "GET",
  POST = "POST",
  PATCH = "PATCH",
  PUT = "PUT",
  DELETE = "DELETE",
}

/**
 * @description 常用的contentType类型。
 */
export enum ContentTypeEnum {
  // 普通JSON格式
  JSON = "application/json",
  // JSON text
  TEXT = "text/plain;charset=UTF-8",
  // form-urlencoded 搭配qs, 在一些特殊场景中使用。
  FORM_URLENCODED = "application/x-www-form-urlencoded;charset=UTF-8",
  // form-data  文件上传的格式。
  FORM_DATA = "multipart/form-data;charset=UTF-8",
}

/**
 * @description 统一返回类的状态码.
 */
export enum ResultCodeEnum {
  SUCCESS = 200, // 成功
  ERROR = -1,
  TIMEOUT = 402,
}
